package com.octnote.domain.user;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 用户登录字段POJO定义
 * 
 * @author leohehe
 *
 */
public class UserLoginForm {

	@NotEmpty
	private String username;

	@NotEmpty
	private String password;

	@NotEmpty
	private String mobile;

	//登录来源(0:游客, 1:手机, 2:微信, 3:QQ)
	@NotEmpty
	private Integer sourceint;
	//如果是第三方登录，需要带第三方ID
	@NotEmpty
	private Integer socialUidvarchar;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getSourceint() {
		return sourceint;
	}

	public void setSourceint(Integer sourceint) {
		this.sourceint = sourceint;
	}

	public Integer getSocialUidvarchar() {
		return socialUidvarchar;
	}

	public void setSocialUidvarchar(Integer socialUidvarchar) {
		this.socialUidvarchar = socialUidvarchar;
	}

	@Override
	public String toString() {
		return "UserCreateForm [username=" + username + ", password=" + password + "]";
	}
}
